<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path;
%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
<title>我的-云校通</title>
<jsp:include page="/WEB-INF/page/common/_header.jsp"></jsp:include>
</head>
<body ontouchstart>
		<div class="weui_tab tab-bottom">
			<div class="weui_tab_bd">
				<div class="wd_hd weui_cells_access">
					<div class="weui_cell pt30">
		                <div class="weui_cell_hd"><a href="<%=basePath%>/ls/my/info"><img src="${config.imgUrl }/${user.teacher.headImgUrl}" class="touxiang circle bg-blue-b"></a></div>
		                <div class="weui_cell_bd weui_cell_primary" style="text-align: left;padding-left: 10px;">
		                    <p>${user.teacher.name } 老师</p>
							<p>积分：<fmt:formatNumber value="${user.teacher.points }" pattern="#"/> <img height="20px" src="<%=basePath %>/images/jifen@3x.png"/></p>
		                	<p>职位：<span class="f14 f-red">${user.teacher.positionText }</span></p>
		                </div>
		            </div>
				</div>
					
				<%-- <div class="page-bd">
			        <div class="weui-flex">
			            <div class="weui-flex-item"><div class="placeholder"><a href="javascript:" class="handing"><img src="<%=basePath %>/images/xuexijilu@3x.png"/> 学习记录</a></div></div>
			            <div class="weui-flex-item"><div class="placeholder"><a href="javascript:" class="handing"><img src="<%=basePath %>/images/shoucangjilu@3x.png"/> 收藏记录</a></div></div>
			        </div>
			    </div> --%>
			    <div class="weui_cells weui_cells_access mt0">
			    	<a class="weui_cell" href="<%=basePath%>/ls/my/info/edit">
		                <div class="weui_cell_hd">
		                		<img alt="" style="width:20px;margin-right:10px;display:block" src="<%=basePath %>/images/wode_dianji@3x.png">
		                </div>
		                <div class="weui_cell_bd weui_cell_primary">
		                    <p>我的信息修改</p>
		                </div>
		                <div class="weui_cell_ft"></div>
			         </a>
			         <a class="weui_cell" href="<%=basePath%>/ls/my/teacher/chatList">
		                <div class="weui_cell_hd">
		                		<img alt="" style="width:20px;margin-right:10px;display:block" src="<%=basePath %>/images/wode_dianji@3x.png">
		                </div>
		                <div class="weui_cell_bd weui_cell_primary">
		                    <p>教师通讯录</p>
		                </div>
		                <div class="weui_cell_ft"></div>
			         </a>
			         <a class="weui_cell" href="<%=basePath%>/ls/my/resourceRefresh">
		                <div class="weui_cell_hd">
		                		<img alt="" style="width:20px;margin-right:10px;display:block" src="<%=basePath %>/images/wode_dianji@3x.png">
		                </div>
		                <div class="weui_cell_bd weui_cell_primary">
		                    <p>功能刷新</p>
		                </div>
		                <div class="weui_cell_ft"></div>
			         </a>
			         <a class="weui_cell" href="<%=basePath%>/ls/my/faceCollection">
		                <div class="weui_cell_hd">
		                		<img alt="" style="width:20px;margin-right:10px;display:block" src="<%=basePath %>/images/face.png">
		                </div>
		                <div class="weui_cell_bd weui_cell_primary">
		                    <p>人脸采集</p>
		                </div>
		                <div class="weui_cell_ft"></div>
			         </a>
			    </div>
			    
			    <div class="weui_cells weui_cells_access">
				<c:forEach items="${user.resourceList}" var="itm" begin="13" varStatus="status">
					<c:if test="${(status.count-1)%3 == 0 && status.count > 1}">
						</div>
						<div class="weui_cells weui_cells_access" style="margin: 10;">
					</c:if>
			            <a class="weui_cell" href="<c:if test='${itm.isExtLink == 0 }'><%=basePath%>${user.currUrl }</c:if>${itm.resourceUrlValue}<c:if test='${itm.isExtLink == 1 }'>&openid=${user.openid }</c:if>">
			                <div class="weui_cell_hd">
			                		<img alt="" style="width:20px;margin-right:10px;display:block" src="<%=basePath %>/images/${itm.icon}">
			                </div>
			                <div class="weui_cell_bd weui_cell_primary">
			                    <p>${itm.resourceName }</p>
			                </div>
			                <div class="weui_cell_ft"></div>
			            </a>
		        </c:forEach>
			</div>
		</div>
	<jsp:include page="/WEB-INF/page/common/_footer.jsp"></jsp:include>
	<script>
		$(function() {
			$(".handing").click(function() {
				alert("谢谢关注，功能正在完善中...")
			});
		})
	</script>
</body>
</html>